package business.search_eng.scorer;

import java.io.IOException;
import java.io.Serializable;
import java.util.HashMap;

public class PeerRankScorer extends WeightedScorer  implements Serializable{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6668280938871821679L;

	public double query_score;
	public double object_score;

	public PeerRankScorer() {
		super();
	}
	
	public PeerRankScorer(HashMap<String, Double> weights, HashMap<String, Double> query_scores, HashMap<String, Double> object_scores) {
		super(weights,query_scores,object_scores);

	}
	
	public void calculateReputation() {
		double oldReputation = 1.0;
		double score=0.0;
		
		setIndividualScore("reputation", score, false);
	}

   /**
   * Always treat de-serialization as a full-blown constructor, by
   * validating the final state of the de-serialized object.
   */
   private void readObject(java.io.ObjectInputStream in)
   				throws ClassNotFoundException, IOException {
	   //always perform the default de-serialization first
	   in.defaultReadObject();
   }

	/**
	* This is the default implementation of writeObject.
	* Customise if necessary.
	*/
   private void writeObject(java.io.ObjectOutputStream out)
   				throws IOException {
	   //perform the default serialization for all non-transient, non-static fields
	   out.defaultWriteObject();
   }
}
